const path = require('path');

module.exports = {
    mode: 'development',
    devtool: "source-map",
    // devtool: 'inline-cheap-source-map',
    entry: './src/index.js',
    output: {
        filename: 'mini-vue.js',
        path: path.resolve(__dirname, 'dist'),
        clean: true,
        // library: 'MiniVue',
        // libraryTarget: 'umd'
    },
    devServer: {
        port: 8050,
        contentBase: './src/examples',
        publicPath: '/dist',
        watchContentBase: true,
    }
};
